package paquete.unico;

import android.app.Activity;
import android.media.MediaPlayer;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class MiPrimerProyectoActivity extends Activity implements OnClickListener {
	
	private Button boton;
    
	/** Called when the activity is first created. */
	@Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        
        boton = (Button)findViewById(R.id.button1);
        boton.setOnClickListener(this);
    }

	@Override
	public void onClick(View v) {
		// TODO Auto-generated method stub
		if (v.equals(boton))
		{
			MediaPlayer mp = MediaPlayer.create(this, R.raw.lab);
			mp.start();
		}
	}
}